Tables [dbo].[OpportunityMainMember]
Properties
PropertyValue
Created10:31:29 AM Tuesday, March 02, 2010
Last Modified11:40:05 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_OpportunityMainMember: OpportunityKeyForeign Keys FK_OpportunityMainMember_OpportunityMain: [dbo].[OpportunityMain].OpportunityKeyIndexes IX_OpportunityMainMember: OpportunityKeyOpportunityKeyuniqueidentifier16
No
Subscriptionnvarchar(50)100
No
DecisionDatedatetime8
Yes
TimingProbabilitydecimal(12,4)9
No
((0))
Unitsint4
No
Potentialdecimal(18,4)9
No
Actualdecimal(18,4)9
No
Qualitynvarchar(50)100
No
ResponseMedianvarchar(50)100
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OpportunityMainMember: OpportunityKeyPK_OpportunityMainMemberOpportunityKey
Yes
IX_OpportunityMainMemberOpportunityKey
Foreign Keys Foreign Keys
NameColumns
FK_OpportunityMainMember_OpportunityMainOpportunityKey->[dbo].[OpportunityMain].[OpportunityKey]
SQL Script
CREATE TABLE [dbo].[OpportunityMainMember]
(
[OpportunityKey] [uniqueidentifier] NOT NULL,
[Subscription] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DecisionDate] [datetime] NULL,
[TimingProbability] [decimal] (12, 4) NOT NULL CONSTRAINT [DF_OpportunityMainMember_TimingProbability] DEFAULT ((0)),
[Units] [int] NOT NULL,
[Potential] [decimal] (18, 4) NOT NULL,
[Actual] [decimal] (18, 4) NOT NULL,
[Quality] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ResponseMedia] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[OpportunityMainMember] ADD CONSTRAINT [PK_OpportunityMainMember] PRIMARY KEY CLUSTERED ([OpportunityKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OpportunityMainMember] ON [dbo].[OpportunityMainMember] ([OpportunityKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OpportunityMainMember] ADD CONSTRAINT [FK_OpportunityMainMember_OpportunityMain] FOREIGN KEY ([OpportunityKey]) REFERENCES [dbo].[OpportunityMain] ([OpportunityKey])
GO
Uses
Used By